package com.shijie.sjoj.service.mapper;

import com.shijie.sjoj.model.pojo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户安全DAO接口
 *
 * @author ZSJ
 */
@Mapper
public interface UserSecurityMapper {

    /**
     * 查询用户密码
     *
     * @param user 用户名
     * @return User
     */
    User obtainPassword(@Param("user") User user);

    /**
     * 设置新密码
     *
     * @param user 用户
     * @return boolean
     */
    boolean newPassword(@Param("user") User user);

    /**
     * 更换手机号
     * @param user 用户
     * @return User
     */
    boolean replacePhone(@Param("user") User user);


}
